package top.archiesean.common.core.constant;

/**
 * @author ArchieSean
 * @description 认证相关枚举
 * @date 2024-01-03 09:02
 */
public interface SecurityConstants {


    /**
     * 默认登录URL
     */
    String OAUTH_TOKEN_URL = "/oauth2/token";

    /**
     * 授权类型
     */
    String GRANT_TYPE = "grant_type";


    /**
     * refresh_token
     */
    String REFRESH_TOKEN = "refresh_token";
    /**
     * 角色前缀
     */
    String ROLE = "ROLE_";

    /**
     * 客户端ID
     */
    String CLIENT_ID = "clientId";

    /**
     * 客户端模式
     */
    String CLIENT_CREDENTIALS = "client_credentials";

    /**
     * 授权码模式confirm
     */
    String CUSTOM_CONSENT_PAGE_URI = "/token/confirm";

    /**
     * 授权服务器用作其颁发者标识符的 URL
     */
    String PROJECT_ISSUER = "http://127.0.0.1:10000";

    /**
     * 用户名
     */
    String USERNAME = "username";

    /**
     * 用户信息
     */
    String DETAILS_USER = "user_info";

    /**
     * 用户ID
     */
    String DETAILS_USER_ID = "user_id";

    /**
     * 手机号登录
     */
    String MOBILE = "mobile";
}
